package cn.hsw.platform.core.configure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 分页信息默认值
 * @author 李子木
 */
@Data
@ConfigurationProperties(prefix = "hsw.page")
@Configuration
public class PageConfig {

    /**
     * 页码 默认值
     */
    private Integer page = 1;

    /**
     * 数量默认值
     */
    private Integer size = 10;

    /**
     * 排序默认值
     */
    private String orderBy = "createTime";

    /**
     * 排序 默认值
     */
    private String direction = "desc";
}
